Skip to content

feat: support --remote-config for loading config from URL#160

Open
renezander030 wants to merge 1 commit intoopenabdev:mainfrom
renezander030:feat/80-remote-config
Open

feat: support --remote-config for loading config from URL#160
renezander030 wants to merge 1 commit intoopenabdev:mainfrom
renezander030:feat/80-remote-config

Conversation

@renezander030
Copy link
Copy Markdown

Summary

  • Auto-detect URLs in the positional config argument: if it starts with http:// or https://, fetch TOML via HTTP GET before parsing; otherwise treat as a local file path (unchanged behavior)
  • Added reqwest dependency with rustls-tls backend and a 10-second timeout with clear error messages on fetch failure, non-200 responses, or invalid TOML
  • Env-var expansion (${VAR}) works on remote config content, same pipeline as local files

Test plan

  • Verify agent-broker config.toml still works (local path, default behavior)
  • Verify agent-broker https://raw.githubusercontent.com/.../config.toml fetches and parses remote config
  • Verify clear error on unreachable URL (timeout after 10s)
  • Verify clear error on non-200 HTTP response
  • Verify clear error on valid HTTP response with invalid TOML
  • Verify ${VAR} env-var expansion works in remote config content

Fixes #80

Auto-detect URLs in the positional config argument: if the arg starts
with http:// or https://, fetch the TOML content via HTTP GET (10s
timeout) before parsing. Otherwise treat it as a local file path
(existing behavior unchanged). Env-var expansion works on remote
config content.

Fixes openabdev#80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support --remote-config for loading config from URL

2 participants